package com.ruoyi.note.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 题目对象 t_question
 *
 * @author cl
 * @date 2021-04-20
 */
public class TQuestion extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;
    private Long userId;

    /**
     * 答案
     */
    @Excel(name = "答案")
    private String answer;

    /**
     * 分类
     */
    @Excel(name = "分类")
    private String cateId;

    /**
     * 链接
     */
    @Excel(name = "链接")
    private String href;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String title;

    /**
     * 类型
     */
    @Excel(name = "类型")
    private String qType;

    /**
     * 是否外链
     */
    @Excel(name = "是否外链")
    private Integer hrefType;

    /**
     * 内容
     */
    @Excel(name = "内容")
    private String content;
    private Long hrefId;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public String getAnswer() {
        return answer;
    }

    public void setCateId(String cateId) {
        this.cateId = cateId;
    }

    public String getCateId() {
        return cateId;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public String getHref() {
        return href;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setqType(String qType) {
        this.qType = qType;
    }

    public String getqType() {
        return qType;
    }

    public void setHrefType(Integer hrefType) {
        this.hrefType = hrefType;
    }

    public Integer getHrefType() {
        return hrefType;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getHrefId() {
        return hrefId;
    }

    public void setHrefId(Long hrefId) {
        this.hrefId = hrefId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("answer", getAnswer())
                .append("cateId", getCateId())
                .append("createTime", getCreateTime())
                .append("href", getHref())
                .append("title", getTitle())
                .append("qType", getqType())
                .append("hrefType", getHrefType())
                .append("content", getContent())
                .append("hrefId", getHrefId())
                .toString();
    }
}
